package io.sage.modules.statistics.dao;

import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.apache.ibatis.annotations.Param;

import io.sage.modules.statistics.entity.BStatisticsWindSpeed;
import io.sage.modules.statistics.entity.BStatisticsWindSpeedExample;

public interface BStatisticsWindSpeedMapper {
    int countByExample(BStatisticsWindSpeedExample example);

    int deleteByExample(BStatisticsWindSpeedExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BStatisticsWindSpeed record);

    int insertSelective(BStatisticsWindSpeed record);

    List<BStatisticsWindSpeed> selectByExample(BStatisticsWindSpeedExample example);

    BStatisticsWindSpeed selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BStatisticsWindSpeed record, @Param("example") BStatisticsWindSpeedExample example);

    int updateByExample(@Param("record") BStatisticsWindSpeed record, @Param("example") BStatisticsWindSpeedExample example);

    int updateByPrimaryKeySelective(BStatisticsWindSpeed record);

    int updateByPrimaryKey(BStatisticsWindSpeed record);
    /**
	 * 风速列表
	 * @param example
	 * @return
	 */
	List<BStatisticsWindSpeed> selectStatisticsWindSpeedList(Map<String, Object> params);

	/**
	 * 批量添加传感器的风速
	 * @param list
	 * @return
	 */
	int saveWindSpeedList(@Param("list")List<BStatisticsWindSpeed> list);

    /**
     * 根据库房id查询记录
     * @param params
     * @return
     */
    List<BStatisVo> selectListByWarehouseId(Map params);
}
